/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.io.FileOutputStream;
import java.io.PrintWriter;

/**
 * <p>Project: jse2303 - PrintWriterDemo
 * <p>Powered by webrx On 2023-07-24 16:36:16
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class PrintWriterDemo {
    public static void main(String[] args) {

        System.out.println("java System.out.println(hello)");
        System.out.println("----------------------");

        //System.in 输入
        //System.out 输出


        try (PrintWriter out = new PrintWriter(new FileOutputStream("out.txt", true))) {
            out.append("java\r\n");
            out.printf("%tF %<tT%n", System.currentTimeMillis());
            out.print("world");
        } catch (Exception e) {
        }
    }
}
